package cn.csust.net2.manager.shared.po;

import java.io.Serializable;
import java.util.Date;

import cn.csust.net2.manager.shared.vo.UserProperty;
import cn.csust.net2.manager.shared.xml.XmlInfo;
import cn.csust.net2.manager.shared.xml.XmlResources;

import com.extjs.gxt.ui.client.data.BeanModelTag;

public class ApplyParty extends PO implements Serializable,BeanModelTag, UserProperty {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3612857203052793668L;
	
	private Integer applyPartyID;
	private Date applyDate;
	private String petition;
	private String remark;
	
	private User user;
	
	public ApplyParty() {
		
	}
	
	public Integer getApplyPartyID() {
		return applyPartyID;
	}

	public void setApplyPartyID(Integer applyPartyID) {
		this.applyPartyID = applyPartyID;
	}

	public Date getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	public String getPetition() {
		return petition;
	}

	public void setPetition(String petition) {
		this.petition = petition;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String getDisplayName() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected XmlInfo getXmlInfo(XmlResources instance) {
		// TODO Auto-generated method stub
		XmlInfo xmlInfo = new XmlInfo();
		xmlInfo.setTextResource(instance.applyParty());
		return xmlInfo;
	}

}
